; Inno Setup Script for Internal Net Bridge Plus
; This script creates an installer for the Windows client

#define MyAppName "内网穿透桥接 Plus"
#define MyAppVersion "1.0"
#define MyAppPublisher "内网穿透桥接团队"
#define MyAppURL "https://gitee.com/io123"
#define MyAppExeName "internal_net_bridge.exe"

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{YOUR-GUID-HERE}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}

DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
LicenseFile=..\..\LICENSE.txt
InfoBeforeFile=..\..\README.md
OutputDir=..\..\build\windows\installer
OutputBaseFilename=internal_net_bridge_setup
Compression=lzma
SolidCompression=yes
WizardStyle=modern
WizardImageFile=
WizardSmallImageFile=

[Languages]
Name: "chinese"; MessagesFile: "compiler:Default.isl"
;Name: "english"; MessagesFile: "compiler:Languages\English.isl"

[Messages]
chinese.WelcomeLabel1=欢迎安装 %1
chinese.WelcomeLabel2=此向导将指导您完成 %1 的安装过程。%n%n在开始安装之前，建议关闭所有其他应用程序。
chinese.WizardSelectDirBrowseButton=浏览(&B)...
chinese.SelectDirDesc=请选择 %1 的安装目录。
chinese.SelectDirLabel3=安装程序将把 %1 安装到以下文件夹中。
chinese.ClickNext=点击"下一步"继续，或点击"取消"退出安装程序。
chinese.LicenseLabel=请在继续安装之前查看以下许可协议。
chinese.LicenseLabel3=请阅读以下许可协议。如果您接受协议中的条款，请选择第一项并点击"下一步"。否则，请点击"取消"。
chinese.LicenseAccepted=我接受许可协议中的条款(&A)
chinese.LicenseNotAccepted=我不接受许可协议中的条款(&D)
chinese.WizardSelectTasks=选择额外任务
chinese.SelectTasksDesc=请选择安装过程中要执行的额外任务。
chinese.SelectTasksLabel2=选择您希望安装程序执行的额外任务。
chinese.WizardInstalling=正在安装
chinese.InstallingLabel=请等待安装程序将 %1 安装到您的计算机上。
chinese.WizardFinished=完成
chinese.FinishedLabelNoIcons=安装程序已将 %1 安装到您的计算机上。%n%n点击"完成"关闭此向导。
chinese.FinishedLabel=安装程序已将 %1 安装到您的计算机上。应用程序的快捷方式已放置在开始菜单和/或桌面上。%n%n点击"完成"关闭此向导。
chinese.ClickFinish=点击"完成"关闭此向导。
chinese.FinishedRestartLabel=安装程序已完成 %1 的安装。在开始使用该应用程序之前，您必须重新启动您的计算机。%n%n您要立即重新启动吗？
chinese.FinishedRestartButton=是，现在重新启动计算机(&Y)
chinese.FinishedNoRestartButton=否，稍后重新启动计算机(&N)

[Tasks]
Name: "desktopicon"; Description: "创建桌面快捷方式(&D)"; GroupDescription: "附加图标:"; Flags: unchecked

[Files]
Source: "..\..\build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "..\..\build\windows\x64\runner\Release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "ChineseSimplified.isl"; DestDir: "{app}"; Flags: dontcopy
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "安装完成后启动 {#MyAppName}"; Flags: nowait postinstall skipifsilent